//
//  InputInfoCellTableViewCell.m
//  陶瓷
//
//  Created by 王戈 on 15/8/2.
//  Copyright (c) 2015年 王戈. All rights reserved.
//

#import "InputInfoCellTableViewCell.h"

@implementation InputInfoCellTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    if (selected) {
        [super setSelected:NO animated:YES];
    }
    // Configure the view for the selected state
}

+ (instancetype)cellWithTableView:(UITableView *)tableView {
    InputInfoCellTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"InputInfoCellTableViewCell"];
    if (!cell) {
        cell = [[NSBundle mainBundle] loadNibNamed:@"InputInfoCellTableViewCell" owner:nil options:nil].firstObject;
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        cell.nameLabel.numberOfLines = 0;
        
        cell.answerTF.returnKeyType = UIReturnKeyDefault;
        cell.answerTF.layer.cornerRadius = 6;
        cell.answerTF.layer.borderWidth = 0.5;
        cell.answerTF.layer.borderColor = [UIColor grayColor].CGColor;
    }
    return cell;
}
@end
